package cc.rome753.activitytask.App;

import android.app.Application;
import android.content.IntentFilter;


import cc.rome753.activitytask.ActivityTask;
import cc.rome753.activitytask.LifecycleReceiver;
import cc.rome753.activitytask.activitytask.ActivityTaskHelper;

public class DesktopApp extends Application {
    @Override
    public void onCreate() {
        super.onCreate();

        if(BuildConfig.DEBUG){
        ActivityTaskHelper.init(this);
        ActivityTask.start(this);
            LifecycleReceiver lifecycleReceiver=new LifecycleReceiver();
            IntentFilter filter = new IntentFilter();
            filter.addAction("cc.rome753.activitytask.ACTION_UPDATE_LIFECYCLE");
            registerReceiver(lifecycleReceiver, filter);
        }
    }
}
